/*
 * ============================================================================
 * Copyright Notice!
 * ----------------------------------------------------------------------------
 * This file contains proprietary and confidential information belonging to the
 * group of people involvled in developing this project.  Reproduction, disclosure 
 * or use without specific written authorization from project stake holders is 
 * prohibited. Please refer the readme.txt in project installation folder for more
 * specific contacts
 *
 * All rights reserved.
 * ============================================================================
 */
package edu.uwm.universitydb.model;

/**
 * Model representing a department <code>Department</type> here
 * 
 * @author Shyam Nair
 */
public class Department
{
    /** attribute holding dept id */
    private final Integer mDeptId;
    
    /** attribute holding dept name */
    private final String mDeptName;
    
    /**
     * 
     * @param deptId
     * @param deptName
     */
    public Department(final Integer deptId, final String deptName)
    {
       mDeptId = deptId;
       mDeptName = deptName;
    }

    /**
     * @return Returns the mDeptId.
     */
    public Integer getDeptId()
    {
        return mDeptId;
    }


    /**
     * @return Returns the mDeptName.
     */
    public String getDeptName()
    {
        return mDeptName;
    }
    
	public String toString() {
		return mDeptName;
	}
	
	public boolean equals(Object o) {
		return (o instanceof Department && ((Department)o).mDeptId.equals(this.mDeptId));
	}

}
/*
 * ============================================================================
 * Change History
 * ----------------------------------------------------------------------------
 * Apr 9, 2014   Shyam Nair
 * File created
 * ----------------------------------------------------------------------------
 */